import request from '@/utils/request'

// 查询企业短信应用配置
export const getSMSConfigApi = (data) =>
  request.post('/biz-microservice-energy/sms/config/organization/config', data)

// 获取下拉框
export const getSMSSelectListApi = () => request.get('/core/dictionary/combo-item/list?dictType=SMS_TYPE')

// 保存企业短信应用配置
export const saveSMSConfigApi = (data) =>
  request.post('/biz-microservice-energy/sms/config/organization/create', data)

// 保存企业短信应用配置
export const updateSMSConfigApi = (data) =>
  request.post('/biz-microservice-energy/sms/config/organization/update', data)

// 查询企业短信模板
export const getSMStemplateApi = (data) =>
  request.post('/biz-microservice-energy/sms/template/get', data)

// 删除数据
export const delSMSConfigApi = (key) =>
  request.post(`/biz-microservice-energy/sms/config/organization/delete?key=${key}`)